﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Entity.ModelConfiguration;
using WMSNet.Model.Models;

namespace WMSNet.Data.Configuration
{
    public class GrrPositionConfiguration : EntityTypeConfiguration<GrrPosition>
    {
        public GrrPositionConfiguration()
        {
            Property(g => g.GrrPositionID).IsRequired();
            Property(g => g.AdditionalContent).IsOptional();
            Property(g => g.Created).IsOptional();
            
            Property(g => g.Modified).IsOptional();
            
            Property(g => g.Amount).IsOptional();
            Property(g => g.ItemData).IsOptional();
            Property(g => g.Lot).IsOptional();
            Property(g => g.OrderReference).IsOptional();
            Property(g => g.PositionNumber).IsOptional();
            Property(g => g.Qafault).IsOptional();
            Property(g => g.Qalock).IsOptional();
            Property(g => g.ReceiptType).IsOptional();
            Property(g => g.Scale).IsOptional();
            Property(g => g.State).IsOptional();
            Property(g => g.StockUnitStr).IsOptional();
            Property(g => g.UnitLoad).IsOptional();
            Property(g => g.ClientID).IsOptional();
            Property(g => g.GoodsReceiptID).IsRequired();
            Property(g => g.OperatorID).IsRequired();
            Property(g => g.StockUnitID).IsRequired();
            Property(g => g.RelatedAdviceID).IsRequired();
        }
    }
}
